//
//  _4DudelViewController.h
//  04Dudel
//
//  Created by smu on 11-7-27.
//  Copyright 2011年 duk. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DudelView.h"
#import "Tool.h"
#import "MessageUI/MessageUI.h"

@interface _4DudelViewController : UIViewController <ToolDelegate,DudelViewDelegate
    ,MFMailComposeViewControllerDelegate> {
    id <Tool> currentTool;
    IBOutlet DudelView *dudelView;
    IBOutlet UIBarButtonItem *freehandButton;
    IBOutlet UIBarButtonItem *ellipseButton;
    IBOutlet UIBarButtonItem *rectangleButton;
    IBOutlet UIBarButtonItem *lineButton;
    IBOutlet UIBarButtonItem *pencilButton;
    //Core Text    
    IBOutlet UIBarButtonItem *textButton;
    
    UIColor *strokeColor;
    UIColor *fillColor;
    CGFloat strokeWidth;
    
    //Core Text
    UIFont *font;
}

@property (retain, nonatomic) id<Tool> currentTool;
@property (retain, nonatomic) UIColor *strokeColor;
@property (retain, nonatomic) UIColor *fillColor;
@property (assign, nonatomic) CGFloat strokeWidth;
@property (retain, nonatomic) UIFont *font;   //Core Text

- (IBAction)touchTextItem:(id)sender;   //Core Text

- (IBAction)touchFreehandItem:(id)sender;
- (IBAction)touchEllipseItem:(id)sender;
- (IBAction)touchRectangleItem:(id)sender;
- (IBAction)touchLineItem:(id)sender;
- (IBAction)touchPencilItem:(id)sender;
- (IBAction)touchSendPdfEmailItem:(id)sender;


@end
